import 'package:aihu_getx_app/app/modules/chat/views/chat_view.dart';
import 'package:aihu_getx_app/app/modules/e/e_index/views/e_index_view.dart';
import 'package:aihu_getx_app/app/modules/e/e_my/views/e_my_view.dart';
import 'package:aihu_getx_app/app/modules/e/e_orders/views/e_orders_view.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

import '../controllers/e_home_controller.dart';

class EHomeView extends GetView<EHomeController> {
  const EHomeView({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: PageView(
        controller: controller.pageController,
        onPageChanged: controller.changePageIndex,
        children: const [
          EIndexView(),
          EOrdersView(),
          ChatView(),
          EMyView(),
        ],
      ),
      bottomNavigationBar: controller.bottomNavigationBar(),
    );
  }
}
